package cn.com.wanywhn.a2017_04_02_bmob_brvah.Bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.Date;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.BmobUser;

/**
 * Created by tender on 17-4-3.
 */

public class PostListBean extends BmobObject implements Parcelable{
    String title;
    String context;
    BmobUser owner;
    String createtime;
    String Lastreply;

    public PostListBean(Parcel in) {
        title = in.readString();
        context = in.readString();
        createtime = in.readString();
        Lastreply = in.readString();
    }

    public static final Creator<PostListBean> CREATOR = new Creator<PostListBean>() {
        @Override
        public PostListBean createFromParcel(Parcel in) {
            return new PostListBean(in);
        }

        @Override
        public PostListBean[] newArray(int size) {
            return new PostListBean[size];
        }
    };

    public PostListBean() {
    }

    public String getLastreply() {
        return Lastreply;
    }

    public void setLastreply(String lastreply) {
        Lastreply = lastreply;
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public BmobUser getOwner() {
        return owner;
    }

    public void setOwner(BmobUser owner) {
        this.owner = owner;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(title);
        dest.writeString(context);
        dest.writeString(createtime);
        dest.writeString(Lastreply);
    }
}
